<md-content class="page-content toolbar-page">
	<div class="page-toolbar" layout>
		<div flex layout layout-align="start center">
			<md-button class="md-primary" ng-click="goBack()">
				<span class="icon icon-chevron-left"></span>
				订单详情
			</md-button>
		</div>
	</div>
	<md-content class="page-body data-sheet">
		<div class="sheet-body">
			<section>
				<md-list>
					<md-item>
						<md-item-content layout-align="center start">
							<div class="md-tile-left">{{orderInfo.ordertype|orderType}}
							</div>
							<div class="md-tile-content" layout="column">
								<div ng-bind="orderInfo.createtime|date:'fullDate'"></div>
								<div ng-bind="orderInfo.createtime|date:'shortTime'"></div>
							</div>
						</md-item-content>
					</md-item>
					<md-item>
						<md-item-content>
							<div class="md-tile-left">订单号
							</div>
							<div class="md-tile-content">#<span ng-bind="orderInfo.id">
							</div>
						</md-item-content>
					</md-item>
				</md-list>
			</section>
			<section>
				<md-list>
					<md-item>
						<md-item-content>
							<div class="md-tile-left">小计
							</div>
							<div class="md-tile-content"><span ng-bind="orderInfo.subtotal|currency">
							</div>
						</md-item-content>
					</md-item>
					<md-item ng-if="orderInfo.discount!=0">
						<md-item-content class="color-warning">
							<div class="md-tile-left">折扣
							</div>
							<div class="md-tile-content"><span ng-bind="orderInfo.discount|currency">
							</div>
						</md-item-content>
					</md-item>
					<md-item>
						<md-item-content>
							<div class="md-tile-left">合计
							</div>
							<div class="md-tile-content l2-text"><span ng-bind="orderInfo.amountdue|currency">
							</div>
						</md-item-content>
					</md-item>
				</md-list>
			</section>
			<section ng-if="orderInfo.checkout">
				<md-list>
					<md-item ng-repeat="pi in orderInfo.checkout.payments">
						<md-item-content>
							<div class="md-tile-left">{{pi|paychannel}}
							</div>
							<div class="md-tile-content">{{pi.amount|currency}}
							</div>
						</md-item-content>
					</md-item>
				</md-list>
			</section>
			<section ng-if="'macct-deposit' == orderInfo.ordertype">
				<md-list>
					<md-item ng-repeat="pi in orderInfo.checkout.payments">
						<md-item-content>
							<div class="md-tile-left">充值方式
							</div>
							<div class="md-tile-content">{{orderInfo.items[0].inventoryname}}
							</div>
						</md-item-content>
					</md-item>
				</md-list>
			</section>
			<section ng-if="'macct-deposit' != orderInfo.ordertype">
				<div class="section-header">订单明细</div>
				<md-list class="tile-img-list">
					<md-item ng-repeat="orderItem in orderInfo.items">
						<md-item-content>
							<div layout class="md-tile-left"><img ng-src="{{orderItem.inventorypic}}" alt=""/>
							</div>
							<div class="md-tile-content" layout="row" layout-align="start">
								<div layout="column" flex layout-align="center start">
									<div>{{orderItem.inventoryname}}</div>
									<div class="x-light">x<span ng-bind="orderItem.qty"></span></div>
								</div>
								<div layout-align="start start">
									<span class="money-ico" ng-bind="orderItem.amount|currency"></span>
								</div>
							</div>
						</md-item-content>
					</md-item>
				</md-list>
			</section>
		</div>
	</md-content>
</md-content>


